
import plot from '@/components/dt-scene/toolbar/plot/index.vue'
import auxiliary from '@/components/dt-scene/toolbar/auxiliary/index.vue'
import AnalysisPot from './analysis/index.vue'
import EnvironmentalControl from './exclusive/environmental-control/index.vue'
import { mapMutations } from 'vuex'
export default {
  name: 'Toolbar',
  components: { plot, auxiliary, AnalysisPot, EnvironmentalControl },
  props: {
    showAlarmTool: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      toolVisible: {
        threeAnalysis: false,
        militaryPlot: false,
        assistTool: false
      },
      dialog: {
        visible: false,
        text: ''
      },
      timeRadio: 1,
      orbitalRadio: 1,
      shellRadio: 2,
    }
  },
  computed: {},
  watch: {},
  created() {
  },
  mounted() {
    this.changeType(this.shellRadio)
  },
  destroyed() { },
  methods: {
    ...mapMutations('radiation-risk', ['SET_TYPE']),
    changeType(val) {
      this.SET_TYPE(val)
    },
    setDialogTextFromChild(text) {
      this.dialog.text = '';
      this.dialog.text = text;
      this.dialog.visible = true;
    }
    
  },
}